package cn.secondquestion;

public class Test {
    public static void main(String[] args) {
        Animal animal = new Rabbit();
        animal.eat();
        animal.sleep();

        Animal animal1 = new Tiger();
        animal1.eat();
        animal1.sleep();
    }
}
